
/******************************************************************************
 *                  Shanghai ChipON Micro-Electronic Co.,Ltd
 ******************************************************************************
 *  @File Name        : kf8a100fxx_pm.h
 *  @Author           : ChipON AE/FAE Group
 *  @Date             : 2023-12-19
 *  @HW Version       : KF8A100Fxx
 *  @Lib Version      : V2.0.1
 *  @Description      : This file provides the driver for the pm module
 ******************************************************************************
 *  Copyright (C) by Shanghai ChipON Micro-Electronic Co.,Ltd
 *  All rights reserved.
 *
 *  This software is copyright protected and proprietary to
 *  Shanghai ChipON Micro-Electronic Co.,Ltd.
 *****************************************************************************/
/******************************************************************************
 *  |Date        |Version  |Author       |Description
 ******************************************************************************
 *  |2023-12-23  |V2.0     |Xiong Yichao |New creat
 *****************************************************************************/

#ifndef KF8A100FXX_PM_H
#define KF8A100FXX_PM_H

#ifdef __cplusplus
extern "C" {
#endif

/******************************************************************************
 *                      Include Files
 *****************************************************************************/
#include "kf8a100fxx.h"
/******************************************************************************
 *                      Macro or Inline
 *****************************************************************************/
#define PM_SET_SLVREN(x) (SLVREN = (x))
#define PM_GET_LVR       LVR
#define PM_GET_POR       POR
/*****************************************************************************
 *                      Typedef Definitions
 *****************************************************************************/
typedef enum
{
    PM_LVR_DISABLE = 0u,
    PM_LVR_ENABLE  = 1u
} PM_LvrType;
/******************************************************************************
 *                      Export Variables
 *****************************************************************************/

/******************************************************************************
 *                      Export Functions
 *****************************************************************************/

/**
 * @brief goto sleep
 * This model offers only one hibernation mode:Deep Hibernation Mode.
 *
 */
void Goto_Sleep(void);

#ifdef __cplusplus
}
#endif
/* EOF */
#endif
